<template>
  <div id="LoanServices" :class="{smallFontSize:showEdition,mediumFontSize:!showEdition}">
    <div class="content">
      <div class="boxser" v-for="(item,index) in List" :key="index" @click="nodeClick(item)">
        <div><span class="name">{{item.name}}</span>
        <span class="dw"><img src="./../../../static/imgs/ZLJ/01.png" alt=""> {{item.dw}}</span>
        </div>
        <div class="middle">
          <div>
            <p class="num"><span>{{item.dked}}</span>万元及以下</p>
            <p class="titleNum">贷款额度</p>
          </div>
          <div>
            <p class="num"><span>{{item.spsj}}</span>个工作日</p>
            <p class="titleNum">审批时间</p>
          </div>
          <div>
            <p class="num"><span>{{item.nhll}}</span>%</p>
            <p class="titleNum">年化利率（单利）</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { GetData } from '@/utils/api';
export default {
  data() {
    return {
      showEdition: false,
      value: '',
      List: [{
        name: "安居贷",
        dw: "惠州农信",
        dked: "100",
        spsj: "1~3",
        nhll: "4.85~8.05"
      }]
    }
  },
  watch: {
    value() {
      this.getData()
    }
  },
  mounted() {
    this.showEdition = this.$store.state.Edition
    if (ZWJSBridge) {
      ZWJSBridge.setTitle({
        "title": "贷款服务"
      }).then(res => {
      }).catch(err => {
      })
    }
    this.getData()
  },
  methods: {
    getData: async function () {

    },
    nodeClick(item) {
      this.$router.push({
        path: "LoanServicesDetail",
        query: {
          data: JSON.stringify(item)
        }
      })
    }
  }
}
</script>
<style lang="scss">
#LoanServices {
  background: #fff;
  font-size: 14px;
  height: 100vh;
  .content {
    height: calc(100vh - 100px);
    overflow: auto;
  }
  .boxser {
    clear: both;
    padding: 10px;
    border-bottom: 1px solid #eee;
    & > div {
      display: flex;
      justify-content: space-between;
      line-height: 26px;
      .name {
        font-size: 18px;
        font-weight: bold;
        color: #1a1a1a;
      }
      .dw {
        font-size: 14px;
        color: #1a1a1a;
      }
      .num {
        color: #e2a500;
        font-size: 14px;
        text-align: center;
        span {
          font-size: 16px;
        }
      }
      .titleNum {
        font-size: 14px;
        color: #848484;
        text-align: center;
      }
    }
  }
}
</style>